#coding=utf8
import random

def del_fixed(nlist):
    a = set(nlist)
    a.remove(2)
    return list(a)

def  game():
     a = random.randint(1,100)
     i = 0
     while i < 5:
        b = int(input('请猜一个整数'))
        if b > a:
            print('猜大了')
            i +=1
       
        elif b < a:
            print('猜小了')
            i +=1
        
        else:
            print('猜对了')
            break

     if i == 5: print("你输了,","答案是",a)
     

a_list = [1,2,3,2,2]
a_list = del_fixed(a_list)
print(a_list)


str = "open('freedom.py','w+',encoding = 'utf-8')"
a = compile(str,'','eval')
f = eval(a)
f.write(u"自由")
f.seek(0)
eval('print(f.read())')
f.close()


game()


